package com.vm.osm.business.service.impl;

import com.vm.osm.business.dao.OsmServerProviderMapper;
import com.vm.osm.business.dao.OsmServerProviderStatusMapper;
import com.vm.osm.business.entity.OsmServerProvider;
import com.vm.osm.business.entity.OsmServerProviderStatus;
import com.vm.osm.business.service.IOsmServerProviderService;
import com.vm.osm.business.service.IOsmServerProviderStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by chenzui on 2018/2/24.
 */
@Service
public class OsmServerProviderStatusServiceImpl implements IOsmServerProviderStatusService {

    @Autowired
    private OsmServerProviderStatusMapper serverProviderMapper;


    @Override
    public int deleteByPrimaryKey(String id) {
        return serverProviderMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(OsmServerProviderStatus record) {
        return serverProviderMapper.insert(record);
    }

    @Override
    public int insertSelective(OsmServerProviderStatus record) {
        return serverProviderMapper.insertSelective(record);
    }

    @Override
    public OsmServerProviderStatus selectByPrimaryKey(String id) {
        return serverProviderMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(OsmServerProviderStatus record) {
        return serverProviderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OsmServerProviderStatus record) {
        return serverProviderMapper.updateByPrimaryKey(record);
    }
}
